
<?php $form=$this->beginWidget('DwzActiveForm', array(
	'id'=>'user-form',
	'enableAjaxValidation'=>false,
	'htmlOptions'=>array(
		'class'=>'pageForm required-validate',
		'onsubmit'=>'return iframeCallback(this,dialogAjaxDone)',
		'enctype'=>'multipart/form-data',
	),
)); ?>

<script type="text/javascript">
/*<![CDATA[*/
	function user_form(form){
		<?php echo $_REQUEST['target']=='navTab'? 'navTab': '$.pdialog';?>.reload(form.action, $(form).serializeArray());
		return false;
	}
/*]]>*/
</script>
<style>.alert .alertInner .msg{max-height:600px;overflow:visible;}</style>
	<div class="form pageFormContent" layoutH="55">
		<?php echo CHtml::errorSummary($model); ?>

		<div class="row">
			<?php echo $form->labelEx($model,'username'); ?>
			<?php echo $form->textField($model,'username',array('size'=>15,'maxlength'=>15)); ?>
			<?php echo $form->error($model,'username'); ?>
		</div>

		<div class="row">
			<?php echo $form->labelEx($model,'password'); ?>
			<?php echo $form->passwordField($model,'password',array('size'=>32,'maxlength'=>32)); ?>
			<?php echo $form->error($model,'password'); ?>
		</div>

		<div class="row">
			<?php echo $form->labelEx($model,'realname'); ?>
			<?php echo $form->textField($model,'realname',array('size'=>16,'maxlength'=>16)); ?>
			<?php echo $form->error($model,'realname'); ?>
		</div>

		<div class="row">
			<?php echo $form->labelEx($model,'email'); ?>
			<?php echo $form->textField($model,'email',array('size'=>32,'maxlength'=>32)); ?>
			<?php echo $form->error($model,'email'); ?>
		</div>

		<div class="row">
			<?php echo $form->labelEx($model,'profile'); ?>
			<?php echo $form->textArea($model,'profile',array('rows'=>6, 'cols'=>50)); ?>
			<?php echo $form->error($model,'profile'); ?>
		</div>

		<div class="row">
			<?php echo $form->labelEx($model,'reg_ip'); ?>
			<?php echo $form->textField($model,'reg_ip',array('size'=>15,'maxlength'=>15)); ?>
			<?php echo $form->error($model,'reg_ip'); ?>
		</div>

		<div class="row">
			<?php echo $form->labelEx($model,'reg_date'); ?>
			<?php echo $form->textField($model,'reg_date'); ?>
			<?php echo $form->error($model,'reg_date'); ?>
		</div>

		<div class="row">
			<div class="fcheckbox">
				<?php // echo $form->checkBox($model,'status',array('class'=>'vmiddle')); ?>
				<?php //echo $form->labelEx($model,'status'); ?>
				<?php //echo $form->error($model,'status'); ?>
			
				<?php echo $form->checkBox($model,'is_delete',array('class'=>'vmiddle')); ?>
				<?php echo $form->labelEx($model,'is_delete'); ?>
				<?php echo $form->error($model,'is_delete'); ?>
			</div>
			<br/>
		</div>

			</div>
	<div class="formBar">
		<ul>
			<li><div class="buttonActive"><div class="buttonContent">
				<button type="submit"><?php echo $model->isNewRecord ? Yii::t('admin','Create') : Yii::t('admin','Update'); ?>
</button>
			</div></div></li>
			<li>
				<div class="button"><div class="buttonContent">
					<button onclick="<?php echo $_REQUEST['target']=='navTab'? 'navTab.closeCurrentTab()': '$.pdialog.closeCurrent()';?>" type="Button"><?php echo Yii::t('admin','Cancel'); ?>
</button>
				</div></div>
			</li>
		</ul>
	</div>
<?php $this->endWidget(); ?>
